<template>
  
  <ul>
    <li class="videoList" v-for="practice in hos.practiceList" :key="practice.id">
      <div class="video">
        <img class="videoInfo" :src="practice.cover" alt="" />
        <div class="videoMessage">
          <!-- 之后需要绑定点击事件跳转到视频页 -->
          <div style="margin-bottom:8px">{{practice.planName}}</div>
          <span class="housework" >已练习0次0分钟</span>
        </div>
      </div>
      <!-- <div class="icon"><img src="./icon.jpg" ></div> -->
      <div class="deleteOne">
        <img src="./icon.jpg" />
        <span>未开始</span>
      </div>
    </li>
  </ul>

  <div class="content" v-if="!hos.practiceList.length">
    <img src="https://rs.dance365.com/img/no_content@3x.0fd78ad2.png" alt=""/>
    <div><span>无更多数据</span></div>
  </div>
</template>

<script>
export default {
  name: "index",
};
</script>
<script setup>
  // 引入仓库
import useUserInfoStore from "../../../store/practive/index";
// 使用仓库
const hos = useUserInfoStore();
</script>

<style scoped>


.content{
  position: relative;
}
.content img{
  position: absolute;
  left: 380px;
  top: 150px;
}
.content span{
  position: absolute;
  left: 450px;
  top: 380px;
  color:rgb(177, 181, 193) ;
  font-size: 16px;
}
.videoList {
  width: 960px;
  height: 142px;
  margin: 10px auto 0;
  display: flex;
}
.video {
  width: 680px;
  height: 121px;
  display: flex;
}
.video .videoInfo {
  width: 169px;
  height: 101px;
  margin: 10px 20px 0px 10px;
}
.video .videoMessage {
  margin: 10px 0;
}
.video .videoMessage div{
  padding-bottom: 15px;
}
.video .videoMessage .housework {
  color: rgb(125, 128, 144);
  font-size: 14px;
}
.video .videoMessage img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: text-top;
  margin-right: 10px;
}
.time {
  width: 153px;
  height: 121px;
  line-height: 121px;
  text-align: center;
  font-size: 14px;
}
.deleteOne {
  width: 145px;
  height: 121px;
  line-height: 121px;
  text-align: right;
  font-size: 14px;
  color: #7d8090;
  margin-left: 80px;
  position: relative;
}
.deleteOne img{
position: absolute;
right: 10px;
top: 20px;
}
.deleteOne:hover {
  color: #f93684;
  cursor: pointer;
}
</style>